From: Chad Horohoe Date: Fri, 16 Sep 2011 15:21:06 +0000 (+0000) Subject: Don't attempt to get a request url from a FauxRequest X-Git-Tag: 1.31.0-rc.0~27615 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=69eb4e23d6c414a5a069c2e50ff33a912c7e57df;p=lhc%2Fweb%2Fwiklou.git Don't attempt to get a request url from a FauxRequest --- diff --git a/includes/Exception.php b/includes/Exception.php index f380d5d0b4..fb5f0ffa21 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -150,7 +150,7 @@ class MWException extends Exception { $line = $this->getLine(); $message = $this->getMessage(); - if ( isset( $wgRequest ) ) { + if ( isset( $wgRequest ) && !$wgRequest instanceof FauxRequest ) { $url = $wgRequest->getRequestURL(); if ( !$url ) { $url = '[no URL]';